home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
heaptrk.zip
/
TIMES.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1993-01-04
|
386b
|
29 lines
Unit Times;
Interface
Uses Dos;
Function Time : String;
Implementation
Function Time : String;
Var
HR,MN,SC,HN : Word;
HRS,MNS,SCS : String[2];
Begin
GetTime(HR,MN,SC,HN);
Str(HR:2,HRS);
STR(MN:2,MNS);
If MNS[1] = ' ' then MNS[1] := '0';
STR(SC:2,SCS);
If SCS[1] = ' ' then SCS[1] := '0';
Time := HRS+':'+MNS+':'+SCS;
End;
End.